<template>
    <div class="reply">
        <div class="title">回复消息</div>
        <el-input type="textarea" :rows="8" placeholder="请输入内容" v-model="replymsg">
        </el-input>
        <div class="btn">
            <el-button type="primary" @click="turnback">返回</el-button>
            <el-button type="primary" @click="sendMsg">点击发送</el-button>
        </div>
    </div>
</template>
<script>
import axios from 'D:\\job_management\\src\\axiosConfig.js'
export default {

    data() {
        return {
            replymsg: ''
        }
    },
    methods: {
        turnback() {
            this.$router.push('CheckResumes')
        },
        sendMsg() {
            axios.post('/company/resumedetail/post',
                {
                    emailInfo: this.replymsg,
                    resumeId: this.$store.state.resumeId
                }).then(res => {
                    const h = this.$createElement;

                    this.$notify({
                        title: '成功发送',
                        message: h('i', { style: 'color: teal' }, '您的消息已成功发至对方邮箱'),
                    });
                }).catch(err => {
                    console.log(err);
                })
        }
    }
}
</script>
<style scoped>
.reply {
    background-color: rgb(0, 180, 179);

}

.title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    float: left;
}

.btn {
    display: flex;
    justify-content: space-around;
    background-color: rgb(227, 243, 246);
}
</style>